<template>
  <div class="footer">
    Copyright&copy;凉先森<span @click="clearAllTodo">clear</span>
  </div>
</template>

<script>
export default {
  // props: ["clearAll"],
  data() {
    return {};
  },
  methods: {
    clearAllTodo() {
      this.$emit("clearAll");
    },
  },
};
</script>

<style scoped>
/* 尾部 */
.footer {
  width: 600px;
  height: 100px;
  margin: 0 auto;
  text-align: center;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer span {
  margin-left: 20px;
  color: #c00000;
  cursor: pointer;
}
</style>